/*
 * @Descripttion:
 * @Author: caijj
 * @Date: 2021-02-25 09:39:00
 * @LastEditors: caijj
 * @LastEditTime: 2021-03-04 09:14:51
 */
const options = [
  { label: '昨日', value: 'YESTERDAY' },
  { label: '近7天', value: 'NEAR_SEVEN_DAY' },
  { label: '月至今', value: 'MONTH_TO_NOW' },
  { label: '近14天', value: 'NEAR_FOURTEEN_DAY' },
  { label: '近30天', value: 'NEAR_THIRTY_DAY' },
  { label: '年至今', value: 'YEAR_TO_NOW' },
  { label: '近12个月', value: 'NEAR_TWELVE_MONTH' }
];
const formConfig = [
  { type: 'MultipleSelector', label: '业态', prop: 'businessCategories', options: [] },
  { type: 'MultipleSelector', label: '大区', prop: 'regions', options: [] },
  { type: 'MultipleSelector', label: '城市', prop: 'cities', options: [] },
  { type: 'MultipleSelector', label: '门店', prop: 'stores', options: [] },
  { type: 'Select', label: '日期', prop: 'dateType', options }
];

const Columns = [
  {
    prop: 'commodityCode',
    label: '商品代码',
    minWidth: '180px'
  },
  {
    prop: 'commodityName',
    minWidth: '180px',
    label: '商品名称'
  },
  {
    prop: 'salesIncome',
    minWidth: '180px',
    label: '销售收入'
  },
  {
    prop: 'frontGrossProfit',
    minWidth: '180px',
    label: '前台毛利额'
  },
  {
    prop: 'saleGrossProfit',
    minWidth: '180px',
    label: '销售毛利额'
  },
  {
    prop: 'discount',
    minWidth: '180px',
    label: '折让'
  },
  {
    prop: 'loss',
    minWidth: '180px',
    label: '损耗'
  },
  {
    prop: 'inventory',
    minWidth: '180px',
    label: '盘点'
  },
  {
    prop: 'frontGrossProfitRate',
    minWidth: '180px',
    label: '前台毛利率'
  },
  {
    prop: 'saleGrossProfitRate',
    minWidth: '180px',
    label: '销售毛利率'
  }
];
export default { formConfig, Columns };
